package tenant

import (
	"context"
	"github.com/gogf/gf/v2/frame/g"
	"ruoyi-vue-pro-go/api/tenant/v1"
	"ruoyi-vue-pro-go/internal/service"
)

func (c *ControllerV1) GetIdByName(ctx context.Context, req *v1.GetIdByNameReq) (res *v1.GetIdByNameRes, err error) {
	g.Log().Debug(ctx, "Raw query string:", req)
	return service.Tenant().GetIdByName(ctx, req)
}
